package com.yoomiito.app.model.video;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.ArrayList;
import java.util.List;

/**
 * 视频相关关信息
 */
public class VideoOtherInfo implements Parcelable {


    /**
     * comment_num : 3
     * product_num : 2
     * is_like : 0
     * product : [{"title":"themoms法国孕妇洗发水护发素专用洗护用品2件套装怀孕期正品","source":"1","image":"https://img.alicdn.com/bao/uploaded/i2/3955232274/O1CN016pHrC21SfXDyijIui_!!0-item_pic.jpg","discountPrice":"165.00","zkFinalPrice":"165.00","typeName":"淘宝商品","type":"1","id":"603875837842","couponPrice":"0","buyAwardPrice":"4.94"},{"get_money":"162.80","share_money":"14.80","upgrade_money":"162.80","yo_money":399,"title":"水星家纺蚕丝被子被芯秋冬礼品被子贵族1.5*2.0米4斤送包装","discountPrice":"399.00","image":"https://mimitao-cdn.aijiamai.com/Fn5KSlc1ITwTMmor9GV7CxOu7l4C","zkFinalPrice":"","typeName":"爆品商品","type":"3","id":"5150918655836431","couponPrice":"","buyAwardPrice":"0.00"}]
     * orderList : []
     */

    private String comment_num;
    private String product_num;
    private int is_like;
    private List<ProductBean> product;
    private List<String> orderList;

    public String getComment_num() {
        return comment_num;
    }

    public void setComment_num(String comment_num) {
        this.comment_num = comment_num;
    }

    public String getProduct_num() {
        return product_num;
    }

    public void setProduct_num(String product_num) {
        this.product_num = product_num;
    }

    public int getIs_like() {
        return is_like;
    }

    public void setIs_like(int is_like) {
        this.is_like = is_like;
    }

    public List<ProductBean> getProduct() {
        return product;
    }

    public void setProduct(List<ProductBean> product) {
        this.product = product;
    }

    public List<String> getOrderList() {
        return orderList;
    }

    public void setOrderList(List<String> orderList) {
        this.orderList = orderList;
    }

    public static class ProductBean implements Parcelable {
        /**
         * title : themoms法国孕妇洗发水护发素专用洗护用品2件套装怀孕期正品
         * source : 1
         * image : https://img.alicdn.com/bao/uploaded/i2/3955232274/O1CN016pHrC21SfXDyijIui_!!0-item_pic.jpg
         * discountPrice : 165.00
         * zkFinalPrice : 165.00
         * typeName : 淘宝商品
         * type : 1
         * id : 603875837842
         * couponPrice : 0
         * buyAwardPrice : 4.94
         * get_money : 162.80
         * share_money : 14.80
         * upgrade_money : 162.80
         * yo_money : 399
         */

        private String title;
        private String image;
        private String discountPrice;
        private String zkFinalPrice;
        private String typeName;
        private String type; //1淘宝商品2礼包商品3爆品商品4优品商品5区代商品
        private String id;
        private String couponPrice;
        private String buyAwardPrice;
        private String get_money;
        private String share_money;
        private String upgrade_money;
        private int yo_money;
        private int source;
        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getImage() {
            return image;
        }

        public void setImage(String image) {
            this.image = image;
        }

        public String getDiscountPrice() {
            return discountPrice;
        }

        public void setDiscountPrice(String discountPrice) {
            this.discountPrice = discountPrice;
        }

        public String getZkFinalPrice() {
            return zkFinalPrice;
        }

        public void setZkFinalPrice(String zkFinalPrice) {
            this.zkFinalPrice = zkFinalPrice;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }

        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getCouponPrice() {
            return couponPrice;
        }

        public void setCouponPrice(String couponPrice) {
            this.couponPrice = couponPrice;
        }

        public String getBuyAwardPrice() {
            return buyAwardPrice;
        }

        public void setBuyAwardPrice(String buyAwardPrice) {
            this.buyAwardPrice = buyAwardPrice;
        }

        public String getGet_money() {
            return get_money;
        }

        public void setGet_money(String get_money) {
            this.get_money = get_money;
        }

        public String getShare_money() {
            return share_money;
        }

        public void setShare_money(String share_money) {
            this.share_money = share_money;
        }

        public String getUpgrade_money() {
            return upgrade_money;
        }

        public void setUpgrade_money(String upgrade_money) {
            this.upgrade_money = upgrade_money;
        }

        public int getYo_money() {
            return yo_money;
        }

        public void setYo_money(int yo_money) {
            this.yo_money = yo_money;
        }

        public int getSource() {
            return source;
        }

        public void setSource(int source) {
            this.source = source;
        }


        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeString(this.title);
            dest.writeString(this.image);
            dest.writeString(this.discountPrice);
            dest.writeString(this.zkFinalPrice);
            dest.writeString(this.typeName);
            dest.writeString(this.type);
            dest.writeString(this.id);
            dest.writeString(this.couponPrice);
            dest.writeString(this.buyAwardPrice);
            dest.writeString(this.get_money);
            dest.writeString(this.share_money);
            dest.writeString(this.upgrade_money);
            dest.writeInt(this.yo_money);
            dest.writeInt(this.source);
        }

        public ProductBean() {
        }

        protected ProductBean(Parcel in) {
            this.title = in.readString();
            this.image = in.readString();
            this.discountPrice = in.readString();
            this.zkFinalPrice = in.readString();
            this.typeName = in.readString();
            this.type = in.readString();
            this.id = in.readString();
            this.couponPrice = in.readString();
            this.buyAwardPrice = in.readString();
            this.get_money = in.readString();
            this.share_money = in.readString();
            this.upgrade_money = in.readString();
            this.yo_money = in.readInt();
            this.source = in.readInt();
        }

        public static final Creator<ProductBean> CREATOR = new Creator<ProductBean>() {
            @Override
            public ProductBean createFromParcel(Parcel source) {
                return new ProductBean(source);
            }

            @Override
            public ProductBean[] newArray(int size) {
                return new ProductBean[size];
            }
        };
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.comment_num);
        dest.writeString(this.product_num);
        dest.writeInt(this.is_like);
        dest.writeList(this.product);
        dest.writeStringList(this.orderList);
    }

    public VideoOtherInfo() {
    }

    protected VideoOtherInfo(Parcel in) {
        this.comment_num = in.readString();
        this.product_num = in.readString();
        this.is_like = in.readInt();
        this.product = new ArrayList<ProductBean>();
        in.readList(this.product, ProductBean.class.getClassLoader());
        this.orderList = in.createStringArrayList();
    }

    public static final Parcelable.Creator<VideoOtherInfo> CREATOR = new Parcelable.Creator<VideoOtherInfo>() {
        @Override
        public VideoOtherInfo createFromParcel(Parcel source) {
            return new VideoOtherInfo(source);
        }

        @Override
        public VideoOtherInfo[] newArray(int size) {
            return new VideoOtherInfo[size];
        }
    };
}
